package com.ffcs.ffxtc.modules.base.dao.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ffcs.ffxtc.modules.base.dao.DrawdbDataService;
import com.ffcs.ffxtc.modules.base.domin.entity.DrawdbData;
import com.ffcs.ffxtc.modules.base.mapper.DrawdbDataMapper;
import com.ffcs.utils.base.Request;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 张正兴
 * @since 2024-04-30
 */
@Service
@RequiredArgsConstructor
public class DrawdbDataServiceImpl extends ServiceImpl<DrawdbDataMapper, DrawdbData> implements DrawdbDataService {

    private final DrawdbDataMapper drawdbDataMapper;


    @Override
    public  IPage<List<DrawdbData>> findAllDrawdbDataPage(Long drawdbUserId, Request page) {
        return drawdbDataMapper.findAllDrawdbDataPage(new Page<>(page.getPageNum(),
                page.getPageSize()), drawdbUserId);
    }
}
